package Com.amit.IO;

import java.io.FileInputStream;
import java.io.SequenceInputStream;
import java.util.Enumeration;
import java.util.Vector;

public class Lab7 {

	public static void main(String[] args) throws Exception {
		
		FileInputStream fin1=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\Amit.txt");
		FileInputStream fin2=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\Anil.txt");
		FileInputStream fin3=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\raj.txt");
		
		Vector v=new Vector();
		
		v.add(fin1);
		v.add(fin2);
		v.add(fin3);
		
		Enumeration e=v.elements();
		
		SequenceInputStream s1=new SequenceInputStream(e);
		int i=0;
		while((i=s1.read())!=-1)
		{
		System.out.println((char)i);
		
		}
		
	}

}
